package lab13;

public class Human extends Mammal {

	private static final int DEFAULT_LEG_NUMBER = 2;
	
	@Override
	public int getDefaultLegNumber() {
		return DEFAULT_LEG_NUMBER;
	}

	public Human() {
		super();
		this.setLegNumber(DEFAULT_LEG_NUMBER);
	}

	public Human(String name, int age, double weight, boolean isDangerous) {
		super(name, age, weight, isDangerous, DEFAULT_LEG_NUMBER);
	}

	public Human(String name, int age, double weight, boolean isDangerous,
			int legNumber) {
		super(name, age, weight, isDangerous, legNumber);
	}

	public void doStuff() {
		System.out.println("Opposible thumbs for the win.");
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Human [legNumber=" + getLegNumber() + ", name=" + getName()
				+ ", age=" + getAge() + ", weight=" + getWeight()
				+ ", isDangerous=" + isDangerous() + "]";
	}

	public Human(String name) {
		super(name);
		this.setLegNumber(DEFAULT_LEG_NUMBER);
		// TODO Auto-generated constructor stub
	}
}